<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>文件上传测试!</title>
  </head>
  <body>
	<form action="<%=basePath %>myupload!upload.action" method="post" enctype="multipart/form-data">
		请选择上传的文件:&nbsp;&nbsp;<input type="file" name="photo" id="photo"><br/>
		<input type="submit" value="上传"> 
	</form>
  </body>
</html>
